#pragma once

#include "Entity.h"
#include <iostream>
#include <vector>
#include <string>
#include <Windows.h>
using std::vector;
using std::string;


#include "../SGD Wrappers/CSGD_TextureManager.h"


struct tFrame
{

	
	RECT m_rRenderRect;
	RECT m_rCollisionRect;
	RECT m_rActiveRect;
	int m_nAnchorX;
	int m_nAnchorY;
	//string m_sEvent;

};

class CAnimationManager;

class CAnimation
{
public:

	CSGD_TextureManager*		m_pTM;

	//CAnimationManager* AniManager;

	int   imageID;

	int   currFrame;
	int   maxFrame;
	int   currAnimation;

	float FrameDuration;
	float FrameSpeed;
	float TimeWaited;

	bool  isLooping;
	bool  isPlaying;
	

	vector <tFrame*> frames;
	


	CAnimation(void);
	~CAnimation(void);

	void Init();
	void Update(float fElapsedTime);
	void Render();

	
};
